[<tag id="resourcepath" type="meta" value="/DesktopModules/NBright/NBrightEspace/App_LocalResources/" />]
[Template:config.txt]
[Template:scriptincludes.html]
<script>
	

    $(document).ready(function () {

        $("#tabs").tabs({
            cookie: {}
        });
		
		$.datepicker.setDefaults($.datepicker.regional[['en-GB']]);
		$('input[[name$="dteReminder"]]').datepicker();
		
		$('.completedbox').hide();
		if ($('input[[id*="totalhours"]]').val() == '' | $('input[[id*="totalhours"]]').val() == '0')
		{
			$('a[[id*="cmdcompleted"]]').hide();
		}
		else
			$('label[[id*="lblnotecompleted"]]').hide();

		if ($('input[[id*="chkCompleted"]]').is(':checked'))
			$('.hidewhencomplete').hide();			
		else
			$('.hidewhennotcomplete').hide();			

		
    }); 

	
</script>	

<div class="nwb-button-group">
[<tag id="cmdUpdate2" type="linkbutton" resourcekey="General.updateexit" commandname="Updateexit" cssclass="nwb-button primary icon approve" commandargument="ItemID"/>]&nbsp;
[<tag id="cmdUpdate1" type="linkbutton" resourcekey="General.update" commandname="Update" cssclass="nwb-button primary icon approve" commandargument="ItemID"/>]&nbsp;
[<tag id="cmdSendEmails" type="linkbutton" resourcekey="Tasks.updatesend" cssclass="nwb-button primary icon approve" commandname="SendEmails" commandargument="ItemID"/>]&nbsp;
[<tag id="cmdDelete1" type="linkbutton" resourcekey="General.delete" cssclass="nwb-button danger icon remove hidewhencomplete" commandname="Delete" commandargument="ItemID" confirm="Delete Item?" />]&nbsp;
[<tag id="cmdCancel1" type="linkbutton" resourcekey="General.cancel" commandname="Cancel" cssclass="nwb-button danger" commandargument="ItemID" causesvalidation="False"/>]&nbsp;
</div>
<div>
[<tag id="TaskRef" type="hidden" value="" />]
[<tag id="CreatedBy" type="hidden" value="" />]
[<tag id="ItemID" type="hidden" value="databind:ItemID" />]
[<tag id="LockedBy" type="hidden" value="" />]
[<tag id="htmlDisplayLockedBy" type="hidden" value="" />]
[<tag type="valueof" xpath="genxml/hidden/htmldisplaylockedby" />]
[<tag id="completeddate" type="hidden" value="" />]
[<tag id="totalhours" type="hidden" value="0" />]

<table class="normal" border="0px" cellpadding="1px" cellspacing = "1px">
<tr>
<td>

<table class="normal" border="0px" cellpadding="1px" cellspacing = "1px">
<tr>
<td align="right">[<tag id="lblref" type="dnnlabelcontrol" resourcekey="General.ref"  />] : </td>
<td>[<tag type="valueof" xpath="genxml/hidden/taskref" />]</td>
</tr>
<tr>
<td align="right">[<tag id="lblname" type="dnnlabelcontrol" resourcekey="General.name"  />] : </td>
<td>[<tag id="txtTaskName" type="textbox" width="250" maxlength="200" />]</td>
</tr>
<tr>
<td align="right">[<tag id="lbldate" type="dnnlabelcontrol" resourcekey="General.date"  />] : </td>
<td>[<tag id="dteReminder" type="textbox" datatype="date" width="100" maxlength="20" />]</td>
</tr>
<tr>
<td align="right">[<tag id="lblStatus" type="dnnlabelcontrol" resourcekey="General.status"  />] : </td>
<td>[<tag id="ddlStatus" type="dropdownlist" data="Urgent;High;Normal;Low" datavalue="1;2;3;4" />] <span class="completedbox">&nbsp;[<tag id="lblcompleted1" type="dnnlabelcontrol"  />] : [<tag id="chkCompleted" type="checkbox" Text=""/>]</span></td>
</tr>
<tr>
<td align="right">[<tag id="lblmanager" type="dnnlabelcontrol" resourcekey="General.manager"  />] : </td>
<td>[<tag id="rblManager" type="radiobuttonlist" data="{$Managers}" repeatcolumns="4" />]</td>
</tr>
<tr>
<td align="right">[<tag id="lblowner" type="dnnlabelcontrol"  />] : </td>
<td>[<tag id="rblOwner" type="radiobuttonlist" data="{$Employees}" repeatcolumns="5" />]</td>
</tr>
<tr>
<td align="right">[<tag type="valueof" xpath="genxml/textbox/txthours" />][<tag id="lbltotalhours" type="dnnlabelcontrol" />] : </td>
<td>[<tag id="lblTotalHours" type="label"  xpath="genxml/hidden/totalhours" />]</td>
</tr>
<tr>
<td align="right">[<tag id="lblcompleted2" type="dnnlabelcontrol" resourcekey="Tasks.lblcompleted1" />] : </td>
<td>[<tag type="valueof" xpath="genxml/hidden/completeddate" datatype='date' format='d'  />]</td>
</tr>
<tr>
<td align="right"></td>
<td>
[<tag id="cmdcompleted" type="linkbutton" resourcekey="Tasks.lblcompleted" commandname="completed" cssclass="nwb-button primary icon approve hidewhencomplete" commandargument="ItemID"  />]
[<tag id="cmduncompleted" type="linkbutton" resourcekey="Tasks.lbluncompleted" commandname="uncompleted" cssclass="nwb-button primary icon remove hidewhennotcomplete" commandargument="ItemID"  />]
</td>
</tr>
</table>
<b>[<tag id="lblnotecompleted" type="dnnlabelcontrol" resourcekey="Tasks.notecompleted" />]</b>
</td>
<td valign="top">
[Template:ClientBasicSelect.html]
</td>
<td valign="top">
[Template:ProjectBasicSelect.html]
</td>
<td valign="top">
[Template:WebsiteBasicSelect.html]
</td>
</tr>
</table>
		<div id="tabs">
			<ul>
				<li><a href="#tabs-1">[<tag id="lblgeneral" type="dnnlabelcontrol" resourcekey="General.general"  />]</a></li>
				<li><a href="#tabs-2">[<tag id="lbltime" type="dnnlabelcontrol" resourcekey="General.time"  />]</a></li>
				<li><a href="#tabs-3">[<tag id="lblhistory" type="dnnlabelcontrol" resourcekey="General.history"  />]</a></li>
			</ul>
						<div id="tabs-1">
[<tag id="lbldescription" type="dnnlabelcontrol" resourcekey="General.description"  />]<br />[<tag id="txtTaskDesc" type="textbox" height="200" width="800" textmode="MultiLine" />]<br/>
[<tag id="lblassignedto" type="dnnlabelcontrol" />]<br/>
[<tag id="chkEmail" type="checkboxlist" data="{$EmailList}" repeatcolumns="4" />]
</div>
			<div id="tabs-2">
			    [Template:TimeAuditCtrl.html]
			</div>
			<div id="tabs-3">
[Template:HistoryAuditCtrl.html]		
			</div>
</div>
        <font size="1px">[<tag id="lbllastmodified" type="dnnlabelcontrol" resourcekey="General.lastmodified"  />] : [<tag type="valueof" databind="ModifiedDate" />]</font>
</div>

